package org.example.entity;


import java.io.Serializable;

public class Admin implements Serializable {
    private String adminId;     // 对应数据库 admin_id
    private String password;

    // 默认构造函数
    public Admin() {
    }

    // 带参数的构造函数
    public Admin(String adminId, String password) {
        this.adminId = adminId;
        this.password = password;
    }

    // Getter和Setter方法
    public String getAdminId() {
        return adminId;
    }

    public void setAdminId(String adminId) {
        this.adminId = adminId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    // 可选：重写toString方法
    @Override
    public String toString() {
        return "Admin{" +
                "adminId='" + adminId + '\'' +
                '}';
    }
}